package ejbinaction.web.example.bean;

import javax.ejb.EJB;
import javax.faces.event.ActionEvent;

import ejb3inaction.example.buslogic.PlaceBid;
import ejb3inaction.example.persistence.Bid;

public class PlaceBidBean {
	
	@EJB
	PlaceBid placeBid;
	
	Bid bid = new Bid();
	
	public void adicionarPlaceBid(ActionEvent event){
		placeBid.addBid(bid);
	}

	public Bid getBid() {
		return bid;
	}

	public void setBid(Bid bid) {
		this.bid = bid;
	}

	
	
}
